const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  publicPath: ".",
  // 配置代理服务器
  devServer: {
    proxy: {
      "/api": {
        target: process.env.VUE_APP_BASEURL,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
  configureWebpack: {
    // provide the app's title in webpack's name field, so that
    // it can be accessed in index.html to inject the correct title.
    performance: {
      //入口起点的最大体积
      maxEntrypointSize: 50000000,
      //生成文件的最大体积
      maxAssetSize: 30000000,
    },
  },
});
